//
//  XLCollectionViewFlowLayout.h
//  XiangLove
//
//  Created by 宋振 on 2018/8/10.
//  Copyright © 2018年 BAOMIHUA.COM. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol XLCollectionViewFlowLayoutDelegate <NSObject>

//更新数据源
- (void)moveItemFromIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath;

//是否能够移动
- (BOOL)isCanMoveItemFromeIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath;

//是否能够选中
- (BOOL)isCanSelectWithIndexPath:(NSIndexPath *)indexPath;

@end

@interface XLCollectionViewFlowLayout : UICollectionViewFlowLayout


@property (nonatomic, assign) id<XLCollectionViewFlowLayoutDelegate> delegate;

@end
